home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / octa209s.zip / octave-2.09 / src / input.h < prev    next >
C/C++ Source or Header  |  1996-12-11  |  3KB  |  92 lines

  1. /*
  2.  
  3. Copyright (C) 1996 John W. Eaton
  4.  
  5. This file is part of Octave.
  6.  
  7. Octave is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2, or (at your option) any
  10. later version.
  11.  
  12. Octave is distributed in the hope that it will be useful, but WITHOUT
  13. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14. FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  15. for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with Octave; see the file COPYING.  If not, write to the Free
  19. Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  20.  
  21. */
  22.  
  23. /* Modified by Klaus Gebhardt, 1996 */
  24.  
  25. // Use the GNU readline library for command line editing and hisory.
  26.  
  27. #if !defined (octave_input_h)
  28. #define octave_input_h 1
  29.  
  30. #include <cstdio>
  31.  
  32. #include <string>
  33.  
  34. extern int octave_read (char *buf, unsigned max_size);
  35. extern FILE *get_input_from_file (const string& name, int warn = 1);
  36. extern FILE *get_input_from_stdin (void);
  37. extern void initialize_readline (void);
  38.  
  39. // Global pointer for eval().
  40. extern string current_eval_string;
  41.  
  42. // Nonzero means get input from current_eval_string.
  43. extern int get_input_from_eval_string;
  44.  
  45. // Nonzero means we're parsing a function file.
  46. extern int reading_fcn_file;
  47.  
  48. // Simple name of function file we are reading.
  49. extern string curr_fcn_file_name;
  50.  
  51. // Full name of file we are reading.
  52. extern string curr_fcn_file_full_name;
  53.  
  54. // Nonzero means we're parsing a script file.
  55. extern int reading_script_file;
  56.  
  57. // If we are reading from an M-file, this is it.
  58. extern FILE *ff_instream;
  59.  
  60. // Nonzero means this is an interactive shell.
  61. extern int interactive;
  62.  
  63. // Nonzero means the user forced this shell to be interactive (-i).
  64. extern int forced_interactive;
  65.  
  66. // Nonzero means the user forced this shell to be really interactive (-i),
  67. // but without using the pager.
  68. extern int really_forced_interactive;
  69.  
  70. // Should we issue a prompt?
  71. extern int promptflag;
  72.  
  73. // A line of input.
  74. extern string current_input_line;
  75.  
  76. // TRUE after a call to completion_matches().
  77. extern bool octave_completion_matches_called;
  78.  
  79. char *gnu_readline (const char *s, bool force_readline = false);
  80.  
  81. extern string Vps4;
  82.  
  83. extern void symbols_of_input (void);
  84.  
  85. #endif
  86.  
  87. /*
  88. ;;; Local Variables: ***
  89. ;;; mode: C++ ***
  90. ;;; End: ***
  91. */
  92.